<?php defined('_JEXEC') or die('Restricted access'); ?>
<?
	JRequest::setVar( 'hidemainmenu', 1 );
?>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}
			// do field validation
			if (form.nama_kota.value == "") {
				alert( "<?php echo JText::_( 'Harap memasukkan Nama Kota ', true ); ?>" );
			} else {
				submitform( pressbutton );
			}
		}
		//-->
		</script>
<? 
	//berasal dari form input
	if ($this->kota->kota_id == null )
		$doMax = 'take';
	else
		$doMax = 'leave';
		
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Input Data Kota' ); ?></legend>
		<table class="admintable" width="880">	
			<tr>
				<td width="100" class="key">
					<?php echo JText::_( 'DAFTAR PROPINSI' ); ?>
				</td>
				<td width="780">
					<?php echo $this->lists['propinsi_id']; ?>
				</td>
			</tr>			
			<tr>
				<td width="100" class="key">
					<?php echo JText::_( 'NAMA KOTA' ); ?>
				</td>
				<td width="780">
					<input class="text_area" type="text" name="nama_kota" id="nama_kota" size="50" maxlength="250" value="<?php echo $this->kota->nama_kota;?>" />
				</td>
			</tr>			
		</table>
		
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_nv" />
<input type="hidden" name="doTask" value="<?php echo $doMax; ?>" />
<input type="hidden" name="kota_ids" value="<?php echo $this->kota->kota_id; ?>" />
<input type="hidden" name="propinsi_ids" value="<?php echo $this->kota->propinsi_id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="kota" />
<input type="hidden" name="view" value="kota" />
</form>
